package com.uestc.servlet.ui;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.uestc.servlet.ServletBase;
import com.uestc.servlet.admin.config.ReadConfig;

/**
 * 管理选项
 * 
 * @author justyoung
 *
 */
@WebServlet("/admin/adminOpt")
public class AdminOpt extends HttpServlet implements ServletBase {
	private static final long serialVersionUID = 1L;

	public AdminOpt() {
		super();
	}

	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		doPost(request, response);
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		writeMessage(response, ReadConfig.getItem("menu"));
	}

}
